package Byte_Stream;

import java.io.File;
import java.io.IOException;

public class IO_Demo04 {
    public static void main(String[] args) throws IOException {
        File file = new File("./text2.txt");
        boolean newFile = file.createNewFile();

        File file1 = new File("./text6.txt");

        boolean b = file.renameTo(file1);
        System.out.println(b);

    }
}
